package com.shine.ports
{
	import com.shine.crypt.SpriteBase;
	
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.events.IEventDispatcher;
	
	public interface IAnimationClip extends IEventDispatcher
	{
		function get currentFrame():uint
		
		function get totalFrames():uint
			
		function get container():SpriteBase
			
		function get maxWidth():Number
			
		function get maxHeight():Number
			
		function gotoAndPlay(frame:uint):void
		
		function gotoAndStop(frame:uint):void
		
		function nextFrame():void
		
		function prevFrame():void
		
		function play(clockwise:Boolean=true):void
		
		function stop():void
			
		function getFrame(id:int):uint
		
		function addChild(child:DisplayObject,frames:uint=1):Array
		
		function removeChild(child:DisplayObject):void
			
		function removeChildAt(id:int):Boolean
			
		function removeAll():void
			
		function addFrameLabel(frame:uint,command:uint=0,label:String=""):void
			
		function getFrameTarget():DisplayObject
			
		function dispose():void
			
		function toString():String
			
		function clone(C:Class=null):IAnimationClip
	}
}